/**
 * @(#)AdDaoImpl.java 2017年4月6日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.IApkFilterDAO;
import org.jsbd.boss.domian.channel.ApkFilter;
import org.springframework.stereotype.Service;

/**
 * TODO 请加入本类的说明
 * 
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
@Service
public class ApkFilterDaoImpl extends CrackBaseDao implements IApkFilterDAO {

	@SuppressWarnings("unchecked")
	@Override
	public List<ApkFilter> selectAllApkFilterList(ApkFilter apkFilter) {
		return super.queryForList("qy_apk_filter.SELECT_ALL_LIST", apkFilter);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<ApkFilter> selectApkFilterList(ApkFilter apkFilter) {
		return super.queryForList("qy_apk_filter.SELECT_BASE_LIST", apkFilter);
	}

	@Override
	public Integer insertApkFilter(ApkFilter apkFilter) {
		return (Integer) super.insert("qy_apk_filter.INSERT_APKFILTER", apkFilter);
	}

	@Override
	public Integer updateApkFilter(ApkFilter apkFilter) {
		return super.update("qy_apk_filter.UPDATE_APKFILTER", apkFilter);
	}

	@Override
	public ApkFilter selectApkFilter(ApkFilter apkFilter) {
		return (ApkFilter) super.queryForObject("qy_apk_filter.SELECT_APKFILTER", apkFilter);
	}

	@Override
	public Integer deleteApkFilter(Integer id) {
		return super.delete("qy_apk_filter.DELETE_APKFILTER", id);
	}


	@Override
	public Integer deleteApk(ApkFilter apkFilter) {
		return super.delete("qy_apk_filter.DELETE_APK", apkFilter);
	}

	@Override
	public Integer insertApk(ApkFilter apkFilter) {
		return super.delete("qy_apk_filter.INSERT_APK", apkFilter);
	}


	@Override
	public List<ApkFilter> selectApkList(ApkFilter apkFilter) {
		return super.queryForList("qy_apk_filter.SELECT_APK_LIST", apkFilter);
	}

	@Override
	public Integer selectCount(ApkFilter apkFilter) {
		return super.queryForCount("qy_apk_filter.COUNT_CONFIG", apkFilter);
	}

}
